<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Untitled Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body>
<form id="form1" name="form1" method="get" action="">
  <input name="q" type="text" id="q" value="经" />
  <input type="submit" name="Submit" value="Submit" />
</form>
<a href="test.2.html?q=你好&s=绿卡建设的发" >啊 啊啊</a>
</body>
</html>
<script language="javascript" type="text/javascript">
function RQ(pVar,pURL){
	pURL = pURL || window.location.href;
   try{
        pURL=decodeURIComponent(pURL)
   }catch(e){
		//
    }
   
   var vars =pURL.split("?");
   if(vars.length==1) return "";
   
   var varsList=vars[1].split("&");
   var equalString;
   for(var i=0;equalString=varsList[i];i++){
        var equalArray=equalString.split("=");        
        if(equalArray[0]==pVar)
            return equalArray[1] || "";
   }
}
alert(RQ("q")+"和"+RQ("s"));
</script>